
package com.amado.springboot.springbootmybatis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.amado.springboot.springbootmybatis.domain.User;
import com.amado.springboot.springbootmybatis.mapper.UserMapper;
import com.amado.springboot.springbootmybatis.service.UserService;

/**
 * @author wangyl-910
 * @description
 * @date 2017/11/25
 * @see
 */
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;

	@Override
	public User getUser(Long id) {
		return userMapper.selectByPrimaryKey(id);
	}
}
